﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAF.CRUD;
using MAF.Authentication.Database.Persistence;

namespace MAF.Authentication.Database
{
    public class DBFactory
    {
        public UserCollection CreateUser()
        {
            return new UserCollection("SqlMap_User.config", "User");
        }

        public UserLogonCollection CreateUserLogon()
        {
            return new UserLogonCollection("SqlMap_User.config", "UserLogon");
        }

        private DBFactory() { }
        private static DBFactory _Instance = null;
        public static DBFactory GetInstance()
        {
            if (null == _Instance)
                _Instance = new DBFactory();
            return _Instance;
        }
    }

}